import request from '@/utils/mockRequest'
const state = {
    data:{}
}
const mutations = {
    GETDATA(state,value) {
       state.data = value
    }
}
const actions = {
    async getData({commit}) {
        let result = await request({url:'/home/list',method:'get'})
       if(result.code == 20000) {
        commit('GETDATA',result.data)
       }
    }
}
const getters = {}

export default {
    state,
    mutations,
    actions,
    getters
}